package com.ybkj.daijia.server.gasstation;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 油价
 *
 * @author Administrator
 */
public class GasPrice implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private String gasNum; // 油号

    private BigDecimal price; // 价格

    private String straightDown; // 直降

    private Integer sort; // 排序

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getGasNum() {
        return gasNum;
    }

    public void setGasNum(String gasNum) {
        this.gasNum = gasNum;
    }

    public BigDecimal getPrice() {
        return price.setScale(2, BigDecimal.ROUND_HALF_UP);
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getStraightDown() {
        return straightDown;
    }

    public void setStraightDown(String straightDown) {
        this.straightDown = straightDown;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return "GasPrice [id=" + id + ", gasNum=" + gasNum + ", price=" + price + ", straightDown="
            + straightDown + ", sort=" + sort + "]";
    }


}
